package com.hnevc.hashmap;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class Test {
	public static void main(String[] args) {
		Map map = new HashMap();
		map.put(1, "JIM");
		map.put(2, "TOM");
		map.put(3, "Jack");
		
		Set set = map.keySet();
		Iterator it = set.iterator();
		while(it.hasNext()){
			Object key = it.next();
			Object value = map.get(key);
			System.out.print(value +" ");
		}
	}
}
